From: Euan Harris Date: Thu, 2 Jul 2015 10:30:05 +0000 (+0100) Subject: libxl: doc: Fix nonexistent error code in libxl_event_check example X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2971 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=1123da20d30b696269484aa037e2ee5d5d7d9e06;p=xen.git libxl: doc: Fix nonexistent error code in libxl_event_check example Fix example code in comment. libxl_event_check() can return ERROR_NOT_READY; LIBXL_NOT_READY does not exist. Signed-off-by: Euan Harris Acked-by: Ian Jackson --- diff --git a/tools/libxl/libxl_event.h b/tools/libxl/libxl_event.h index 3c6fcfe1b6..fad4c140ad 100644 --- a/tools/libxl/libxl_event.h +++ b/tools/libxl/libxl_event.h @@ -213,7 +213,7 @@ void libxl_evdisable_disk_eject(libxl_ctx *ctx, libxl_evgen_disk_eject*); * libxl_osevent_afterpoll(...); * for (;;) { * r = libxl_event_check(...); - * if (r==LIBXL_NOT_READY) break; + * if (r==ERROR_NOT_READY) break; * if (r) goto error_out; * do something with the event; * }